# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-arc4
_pkgname=arc4
pkgver=0.4.0
pkgrel=4
pkgdesc='A small and insanely fast ARCFOUR (RC4) cipher implementation of Python.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/arc4/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('ea79e8b2918356550c3b1158a7be82434472567c01aa6e6661aa85ae0e6add5ab26e473a3eeb48f4e5ce9b1ad9a48d35518248c730b9ef924e43cb64fa72ef84')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

